package com.lry.sso.service.service.impl;

import java.util.List;

import com.lry.sso.data.dao.SysRoleMapper;
import com.lry.sso.service.service.RoleService;
import com.lry.sso.data.pojo.SysRole;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 
 *
 * @author 李瑞益
 * @date 2019/9/1
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private SysRoleMapper sysRoleMapper;

    @Override
    public List<SysRole> listByUserId(Long userId) {
        return sysRoleMapper.listByUserId(userId);
    }
}
